﻿@model DNT.RavenQA.Web.ViewModels.TagListViewModel
@{
    Layout = "";    
}

@if (Model.Items.IsNotNullOrEmpty())
{
    <div class="module" id="recent-tags">
        <h4 id="h-popular-tags">Popular tags</h4>
        <div id="popular-tags-list">
            @foreach (var tag in Model.Items)
            {
                <a 
                    href="@Url.Action("ByTag", "Question", new {id = tag.Name})" 
                    class="post-tag" 
                    title="show questions tagged '@tag.Name'"
                    rel="tag">@tag.Name</a>

                <span class="item-multiplier">
                    <span>×</span>
                    <span>@tag.Count</span>
                    <br />
                </span>
            }
        </div>
    </div>
}